import request from '@/utils/request'

// 查询月入库量列表
export function listMonthenter(query) {
  return request({
    url: '/statistic/monthenter/list',
    method: 'get',
    params: query
  })
}

// 查询月入库量详细
export function getMonthenter(monthEnterStatisticId) {
  return request({
    url: '/statistic/monthenter/' + monthEnterStatisticId,
    method: 'get'
  })
}

// 新增月入库量
export function addMonthenter(data) {
  return request({
    url: '/statistic/monthenter',
    method: 'post',
    data: data
  })
}

// 修改月入库量
export function updateMonthenter(data) {
  return request({
    url: '/statistic/monthenter',
    method: 'put',
    data: data
  })
}

// 删除月入库量
export function delMonthenter(monthEnterStatisticId) {
  return request({
    url: '/statistic/monthenter/' + monthEnterStatisticId,
    method: 'delete'
  })
}
